package ${ServiceCompletePackageName};

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import lombok.extern.slf4j.Slf4j;
import org.springframework.transaction.annotation.Transactional;
import ${EntityCompleteClassFileName};
import ${MapperCompleteClassFileName};
import com.change.core.page.Page;
import com.change.dto.req.Query${EntityClassFileName}Req;
import com.change.dto.req.Save${EntityClassFileName}Req;
import com.change.dto.resp.Query${EntityClassFileName}Resp;
import java.util.List;

/**
* @author ${Author}
* @date  ${Date}
*/
@Slf4j
@Service
public class ${ServiceClassFileName} extends ServiceImpl<${MapperClassFileName}, ${EntityClassFileName}>{
    private final ${MapperClassFileName} ${MapperInstName};

    public ${ServiceClassFileName}(${MapperClassFileName} ${MapperInstName}) {
    this.${MapperInstName} = ${MapperInstName};
    }

    public Page<List<Query${EntityClassFileName}Resp>> getPage(Page page, Query${EntityClassFileName}Req req) {

        return page;
    }

    public Query${EntityClassFileName}Resp detail(Integer id) {
         return new Query${EntityClassFileName}Resp();
    }

    @Transactional(rollbackFor = Exception.class)
    public ${EntityClassFileName} save(Save${EntityClassFileName}Req req) {

        return null;
    }

    @Transactional(rollbackFor = Exception.class)
    public ${EntityClassFileName} update(Save${EntityClassFileName}Req req) {
         return null;
    }

    @Transactional(rollbackFor = Exception.class)
    public Integer delete(Integer id) {
        return null;
    }
}
